<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateUserScoreLogTable extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() {
        Schema::create('user_score_log', function(Blueprint $table) {
            $table->increments('id');
            $table->char('user_id', 5);
            $table->string('type', 50);
            $table->string('scoretype', 50);
            $table->string('score', 50);
            $table->string('data', 50);
            $table->date('date');
            $table->text('note');
            $table->char('updater', 5);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down() {
        Schema::drop('user_score_log');
    }

}
